/* 字符输入输出示例 */
#include <stdio.h>

int main(void)
{
    while (1)
    {
        char ch;
        scanf("%c", &ch);
        printf("Input the character ");
        printf("%c", ch);
        printf(" with ASCII code %d\n", (int)ch);
    }
}